package com.xmmj.baselibrary.widget.loading

import com.xmmj.baselibrary.base.dialog.BaseMvvmDialog
import com.xmmj.baselibrary.R
import android.view.WindowManager
import com.xmmj.baselibrary.BR
import com.xmmj.baselibrary.databinding.DialogLoadingBinding

/**
 * Loading对话框
 */
class LoadingDialog : BaseMvvmDialog<DialogLoadingBinding, LoadingViewModel>() {
    override fun getVariableId(): Int {
        return BR.viewModel
    }

    override fun getLayoutId(): Int {
        return R.layout.dialog_loading
    }

    override fun getWidth(): Float {
        return WindowManager.LayoutParams.WRAP_CONTENT.toFloat()
    }

    override fun getHeight(): Float {
        return WindowManager.LayoutParams.WRAP_CONTENT.toFloat()
    }
}